<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>jquery 动画效果实现</title>
  <style>
    .box1{
      width: 100px;
      height: 100px;
      background-color: rgb(182, 10, 10);
    }
    .box2{
      width: 500px;
      height: 10px;
      background-color: rgb(174, 16, 206);
    }
  </style>
</head>
<script src="js/jquery-1.12.4.min.js"></script>
<script>
$(function(){
  $('.btn').click(function(){
    $('.box1').animate({width:500},1000,function(){
      $('.box2').delay(1000).animate({height:500},1000,function(){
      })
    });
  })
});
</script>
<body>
  <div class="content">
    <button class="btn">动画</button>
    <div class="box1"></div>
    <div class="box2"></div>
  </div>
</body>
</html>